'use strict';

/**
 * Route configuration for the NxtMap module.
 */
angular.module('NxtMap').config(['$stateProvider', '$urlRouterProvider',
    function($stateProvider, $urlRouterProvider) {

        // For unmatched routes
        $urlRouterProvider.otherwise('/analysis/case');

        // Application routes
        $stateProvider
            .state('analysis', {
                abstract: true,
                url: '/analysis',
                templateUrl: 'templates/main.html'
            })
            .state('main', {
                url: '/main',
                templateUrl: 'templates/bigscreen.html',
                controller: 'BigScreenCtrl'
            })
            .state('analysis.jingqing', {
                url: '/jingqing',
                templateUrl: 'templates/jingqing.html'
            })
            .state('analysis.case', {
                url: '/case',
                templateUrl: 'templates/case.html'
            })
            .state('analysis.rfid', {
                url: '/rfid',
                templateUrl: 'templates/testview/rfid.html'
            })
            .state('analysis.quzhou', {
                url: '/quzhou',
                templateUrl: 'templates/testview/quzhou.html'
            })
            .state('analysis.traffic', {
                url: '/traffic',
                templateUrl: 'templates/traffic.html'
            })
            .state('analysis.check', {
                url: '/check',
                templateUrl: 'templates/check.html',
                controller: 'CheckCtrl'
            })
            .state('login', {
                url: '/login',
                templateUrl: 'templates/login.html',
                controller: 'LoginCtrl'
            });
    }
]);